bugfixes and updates to fft.xtm