adding reporting of errors during export