removed some useless code, added iptables template