flush out header