[add] upgradator as a library.