tal: check headers more carefully.