adjust batchID management