process dois in small batches