add args content and fix a few bugs