add detector cache
don't flag templates as relative. refs #153