add serializer for eventstats