added isActive root detection