added support for paging results (offset, limit)