expansion of ScriptFunction and ScriptOperation apis