added packet filtering to stop infinite broadcasting