added serialization/deserialization for creating data views, to clone models