handling intermediarys exceptions"