added better logging and async search index rotate