check local upgrade file firstly, then check network