[skip ci] made headers a set of lines, improving section detection