fixed a few bugs, made it work
modified firewall script