util: add lodash and refine a few other utils.