add manual batching to scan