update environment setting