add script to fix firmware upgrade