(bluefox) optimize add and del of adapters.