bugfixes, now using json for all qr codes. too many packages might generate too large qr codes