update get_file_dict method