new environment setting and template folder relatively modified