add support for listing affinity groups