use byteTree to parse headers