change saveAndIndexAsync to saveAndIndex