tpl compile code cleanup