with cursor paging