udpated for kml loading