main scripting updates