make qrcode possible to be imported external