some fixes in error output