implemented ScriptManager