added helper functions to firewall.py