upgraded post uninstall script