adding support for specifying the type of barcode to scan
adding support for specifying the type of barcode to scan