put back original loadBatch (batchId) lines before encoding/decoding