added methods to broadcast data to client