introduce a fudge factor to script execution, it was the only way to make the pty support work correctly X(