flag/mode modification