more work on shards
start filling in the topology change logic