add timestamp to both client and server