add mad client and server