ip tagging fix, count fixes