modified how to assign DirectoryEos