tools/check_upgrades library