added factory for event serializer