build the server and client framework