updated to new SVG output stream