remove some extra flags