added ParseHeader()