add select echo client and server code