changes to support iptags and reverse iptags easier