properly fetch env