added environment.sh, revert a753a1073ffeba58939f74b337b3d41de1a8b19a