modified sim_dir