addec lient and server code