now retrieving events from the API