dictionary: make writing dictionary entries more flexible