scratch code for server and client sockets on timing