added paging; fixes #3