automatic generation and plugging of a new dictionary2 block
reused the same addNewDictionaryBlock code in all places with an optional dictionary