add hooks.