parallel batch processing - first draft