implements fixes to reindex-all; tested; works.