fixed bugs in qtools. can be imported via from gscripts import qtools