add option to correct spectra using tpcorrs