some scripting changes