adding restify and paging support