trying to make least_interpolation work. Seems to have gone wrong with introduction of index_generator