adding communication betweet client and server