qrcode script: moved and delegated