invalidations and dirty bits, trying to minimize screen updates