remove root; add some logging