rename default_dict and use os.path