fix wrapper to fetch responses in batches