script mode change