fixed aggregate value generation, big changes to alert email system