update samples to work with qrcode even on distant server