flaw manager refactoring and add update
functionality