rel_dir is replaced with rel_file