fixed several bugs that caused ping packets to be send instead of alerts