some updates to code qso_var