add support for flood detection