Coped upgrade scripts to safe area and reset