added -p option to pack.sh