enhance logging on upgrades