environment switching for dynamic scaling