fixed some issues due to fieldtrip progressing and this function not having been used for half a year