working on custom serializer for save state