adding xpath functionality