read env variables correctly