added death handling and a name field to event object