moved joinDicts to utils