added distupgrade function (Related:963710)