add hooks implementation with all hooks in a single record