API_controller, events processing