update parser to include end page