write top20 mappings to files