full code for upgrade at usw