setting upgrade flag to true