improved environ usage