better support for offset and limit querying