fixing issue with importer exiting to early when multiple files