better claiming of template files