cleanup of indexes, fix for compaction (hash, cap, geo)