currently able to parse the first tag set correctly, but the second and subsequent tag sets are offset, and the cursor can't go backwards easily.