finish packer and unpacker