add hooks{} support