add index support