fixed flash behaviour
fixed qr generation