adding hooks to config