adding spectral templates and routing