more improved error messages and display formatting