add echo server code