add history changes, and run only if qsign is installed

fix variable name