more fixes to send_alert.php