handle multiple pages of results