make error reporting work