modified make_framework_package.sh