added get all events and get all event names functions