add ns check for xpath