fixes for serializability
saving model of a result
handle serialized model as byte[] not String