ensure handle_event is registered