added exception class to error report
improved code