batch processor for sample generation