add a debug prinft, some problem with the socket