copy client and server