add do_upgrades flag