new file:   emulate_dir.sh