add logging of upgrades