Get a lawyer. Don’t ask people here about things like this. Get professional advice.
We were pretty sure with talking to our attorney and discussing it last year with our accountant we had it figured out but one still gets nervous when it gets near tax time and youre thinking what ifs