implemented prod mode and basic ddos check