tweaks for rendering; fix cache bug