sys.exit() disabled
ptscale patch