refactor ES.client construction, fix timeout config