updated new modebasescript