make dynamic environments work