initial attempt at getting directory support working