handle multiple header sections in SPEC data file