fixing reading out errors in the import script