tweaked import file parsing to prevent fail when extra newlines are encountered in an import file