export error functions