replace local nonws flag with data member flag dirty_