separate module manager from main plugin class