added basic flood control