modified unpack.sh