add pagination to config