refactors barcode grab.