renamed expertClient to index and index to index__ for testing purposes