remove most lodash usage and fix examples