make Execute a function of ScriptInput
fix various tests