enhance scripting