- changed a bunch of the serializer code from stringstream to string