crack at having appendPartition add proper indexes