remove obsolete flags