added register_event and register_event to git