add get_active_plugins function