refactored to use install_plugins function to remove duplicates