refacotred barcode qc out of the encode notebook of doom