added emit broadcast functionality