switch to a flattened representation of the judgement trail. NB: This code is still all over the place. It'll look much nicer when it's all sanitized and brought together