added DOS attack protection