add missing cb function

Fixes #589 but breaks a lot of tests. The cb function wasn't getting passed in to the runHooks function. Not actually sure what the correct fix is. 
it is