rename `indexOfFn` here, too? (I know this file is actually generated from the other)