additional work on the scripting engine