specifically pass the namespaces used for xpath

passing namespaces which are not used in the query slows down the search.
replaced slow method calls