added some logic to firewall.c