fixed the pagination issue. Big thanks to folks at Firehoseproject