major improvements to render performance