added 'context' to scan barcode