update extend() for new index api