better output
added error output