make upgrades a temporary file