added pack count and pct to upgrade.bash - not fully tested