client and server threads changing