added dir_readdir implementation