The former underdog parasite encourages the wood-boring beetle and uses cavities made by it as its home , so ultimately the changes in the ant pecking order proved detrimental to the health and viability of the tree , the paper said .