updated to use ft_selectdata_old as ft_selectdata_new cannot average over time for source level data, and when using cfg.latency the output is wrong.