pagination support

dont merge just yet, im on a train, i need to test when I get home tomorrow