added debug output to QR code open