instead of passing list of hooks, pass HookManager instead.