only importing importlib if necessary