[unpacker] implement unpack2 method