updated header regex to be a little less agressive