merit manager refactoring and add update
functionality