added client socket reconnect