changed type() to honor your ignored header fields;