modify scan flash condition, add feature of extract flash from xlsx