added function to read header w/o full parsing