add more error logging and i18n support for import/export