set default value to client; change send buf to local vars;