added separate files for advanced and leaflet which require patches