barcode_emul from ML4 source code to fix IR