exceptions mailing code simplified