slightly less ugly enviroment class