working towards spectral search (ongoing)