add snapshot and qrcode.