first version of the serializer