remove dependence on lodash cloneDeep