another attempt at barcode scanning