hack to only use filename for template name