How to save the enviroment