add exception if template not found