apply upgrades