lib small buggs changes, mainly FFT