load events from the data