tweaks to tcp-state parsing