implemented call to knowledge base on template check