finally fixed root node issues