updated to latest version of fieldtrip code