corrected indexing problems. deletes existing index and rebuilds it at every launch.