Add simple send part into client; fix bug in server