[wip] adding custom routines to optimise fieldtrip analysis and work
round their limitations