add code for console client/server - process echo query