more progress on reading the header