fixing --env issue