convert to use paging from server