correct method to get env variable