modified server to hopefully take multiple messages from client on same connection