doesn't set flags properly for wizard

