add script for upgrade