several fixes to firewall and squid mem usage