add logging to dict merge