fix iptables log parse, add debug mode