getIndices, etc. improved