work on header parsing