changed error reporting a bit