adding support for specifying the type of barcode to scan