communication logic between server and client was implemented