changes to allow leaflet to load on delpoy