update pagination() to reflect inconsistent API results

My bad - this doesn't contain my changes... I'm gonna resubmit...