added a upgrade manager to manage the upgrades