more work on rec_dir_iter