changes to DirectoryIterator implementation