adapt xpaths