add cmd ratelimits, restore regex is_ipaddr