expansion of ScriptFilter and ScriptFunction api