edit tpls for connect