working on server-client communication