updated scripting API docs