cleanup serializer