renamed api to index