common call to hook.d functions, debug mode