add paginate to config