remove the non-working upload_flag