added logging to XPathNotFound