enable/disable modify flags wisely