initial version of server and client