autogen: template file control