improved header title handling
fixed algorithm for header hash extraction