added logs on reconnect