scripting test code