implement parsing of fixed header