only import mpl when needed
only import mpl when needed