update the yam
continue
fix some bugs about buffer and format