getRootNode as extra method + logging