add setStartIndex() to support an undocumented feature.