include template name in debug output