final updates to flags