fixed sw upgrade (add sudo)