Backwards compatibility

added an ImportError check to maintain backwards compatibility