add page parser to parse page header and trailer