add rat98.py and modify upgrade.py