parse header data across packets