minor changes to the scripting engine