added upgrade command to self-upgrade the client