milestone commit where the first (non-working) sketch of deduplicating with indexes