ScriptPlugin: inner classes instead of objects