add echo builtin module; fix bugs in server and client communication