handling upgrade