changed some scripting syntax