added private constructor for kryo