more useful preRender hook