fixed bugs in echoserv