moved functions to goevents.EventsApi