removed url parameter in favor of arg. parse offset and totals. fail if 0 rows are returned