pub type BatchInfoIter = Box<dyn Iterator<Item = Result<BatchInfo, String>>>;