finished getEvents and getEventsByRevision