working on scripting interface