fixes + tests + qrcode