added sendAll function to send messages