merging and dict debugging