bugfix: some flags were consumed by parser