sends an output to server