add index builder prototype