add feature for getting more detail error message #4