improved error output