fixed (again) unmerged heinous bugs in new spectra scripts