guard against DoS - thanks @epitron.