implemented message counting and validation of destinations to avoid infinite forwarding loops