proper serializer.