Backwards breaking change for setEnv