extend fetch_batch so it will automatically page through results