redoing how paging works for the api