basic server/client communication implemented