set the environment