stage 2 - added xpath replacer