add lodash and when as dependencies for endpoints