add the event api