added qr support