set up for batch