chenge outputMessage API to broadcastMessage & add new outputMessage API