changed sendtoclient in serverthread