One of the regular SS professionals will be able to give you a better informed answer.
You need to consider the deductibility of the LOC interest and the separate loan to fund the remaining 80% for the IP. I think the deductibility of both would be at risk if you then decide to live in it...