set back to scriptmode = 1