fixes environment