lodash is required as global for this hook