Add extends tpl feature