changed iptables to support json