switched to https://npmjs.org/package/clone