headers loaded into buffers first now, endianess corrected