added error output