cleaned up child resource root logic