added getting of exceptions