add pagination for docs among other things