working exchange

input passed from client to server