improve error output