#update preparevars