update to enviromentHandler