improve RenderContext