added paging args to API handler