protect non-importable classes from monkey patch