add handlers for tasks