fixed problems in enviroment find