some fiddling to try to remove flicker on resize, but don't help