added a kml writer