fixed script manager, working on plugin