use IndexCliend interface instead of real thing