new changes for the directory dao and test