unserialize compatibility