change the tmpl loading way