add promise to index