adding get_paged API and tests