fixes for reading samples and barcodes.