sampling done using newer xpath style
added code needed for pagination extraction