properly ref env variables