stores the hook callback keyed on node/hookName