added get_hash_file function