Below: the new load_plugins function