Updated the plugins and middleware to register dynamically based on specific set and overridden by the settings