changed ~wolf to use xpaths rather than stupid searches