support parallel execution in BatchMain (multicore FTW!)