correctly sets env variable