implement simple unserialize

implement simple unserialize