minor refactoring, index stats request timeout