refactor and updateMgr
refactor and updateMgr