update to writing to kmz