only import lib when required