prepare for batch submission