make environments work