environment now gets set properly