added render_to_text helper