get leg|path.
.rearrange code for reading LtR UtD.