improvements to avoid chrome flickering