allow callbacks in hooks