fixed directory tree viewer, for the most part