generalized the event list serialization