changed cur_dir to base_dir..