Split v4 and v5 header parsing, per Keiler's advice; v4 works