document parse_flag method