parse events from response