splitting plugins_manager in a different file