debugging with TreeRegistry