renaming to ldir()