commented out render_text and render_file functions