add email notification to send server error