updated gen.package.sh