use flattened header