add simple funcs for client-server comminucations