work on error message formatting