QR still not working,
fixed screen rotation problem, not tested yet.