main config use tpl