try to implement barcodeHook
stabilisierte version, scanning with hoock working better