use lodash implementation of extend