added support for scanning QR code