improved header and title detection.