finishes (untested) initial reindex-all code.