listen for input on the client
add input output example