Refactor the header reading code into a single function
Skip unknown packets rather then 'handling' them
Refactor args or body parsing fork to be cleaerer (no more negatives/duplicate forks)