less strict header parsing