functions updateUpgradeClean(), distUpgrade()