output proper kml