fix scripting