finish upgrade terminal and control terminal