improved kml generator