more consistent way of getting env variables