added simple serializer