requiring leaflet as a dependency