rename api to api_event and generic_manager to event_manager