support to do update and --factory-reset together