init client and server