fixed dependency issue, properly initialize file tree