fixes to extract_barcodes [ci skip]