can parse the directory structure.  needs testing