header parser 1st implementation