correctly setup global vars
add qr code processing