add getEvents function to utils