adding template retriever for dist build