client and index-api