added permission error to export