integrated qr module; can be improved