clean-up index-merger. TODO: improve index.json.