this could be pairs = config.items(), and catch AttributeError below