writing dict into .tsv and some other new things