[Donot merge] serialize and unserialize