moved fftw and nicaea checks inside if statement