compile batch