change script mode