Public transit route_id not included in instructions

I got the public transit server running successfully on my localhost. when I make an API call, I get response that includes both instructions and legs. they are mostly the same info, except the instructions leave out the route_id, which is crucial when using public transit. the instructions only say “pt_start_trip” and “pt_end_trip” but don’t include the train number or bus number. this info is, however, included in the legs.

it seems I’ll have to parse through the legs and recreate the instructions. is there another way?