critical fix: ring layout, shard allocation