unified block header parsing