improved root testing