batch improvements