handlers for insertion of user-defined functions (hooks)