improve isImportToFilebase check