The public deal that almost wasn't