make the RST visualizer more robust