simplified upgrades code