changed directory contents to have a dir parent object