updated code not to send emails fro known problems