add helper to get pagination info easier from api