adding functions to get message and result from echo_server
user interventionfunction added