api to compare tar_files