serialize using kryo, and up version