header processing