add qr support. closes #18