better import error handling