added isExportInstance check