simplfy API, implement paging