add component to ScriptAPI