add upgrade verify logic