update activate plugins implementation