writing kml outputs