extracting header using IResult of attoparsec
don't use Parser directly from main