add operations mode
modify flags