a utility we use internally for managing paginated searches with our APIs