modify kryo serialization