evrything works fine now, only prob is killing the client program