bug fixes, added primitive barcode