crack at implementing add index for partitioned collections