some opendir/readdir work