first pass at directory support.