add debugging for template path