implemented basic CLI reindex feature