intialiaze client and server code.