fix tpl and include config