Damn stupid thing... think I'm missing some understanding of decodeHeader