COnfiguring hooks for web service