add debug info for upgrade