modified flood detection to stop sending msg's