added a feature for getting the fields of an event.