refactored loaded plugin draft