new enviroment handling