add doc and format parser