created ScriptFactory