renamed broadcast method to broadcastCommand