document flags, and fixed flags in add/sub