add automatic header reader