fixed environment setting checks