rewrote client to use TCP instead of UDP