hooks can log hook function names if given