add some progress indication and error handling to template discovery