fixing a bug in qbets wrapper and appdata script