modify flash file and manifest