added cmd and broadcast methods