better code structure for the plugin manager and new plugin name based injection