scripting fixed