error handling in importer bug fix