added timeout to flood control