save environment.