upgrade env