some more work on scripting