minor bug fixes in importer