cleans up functions. export as lodash mixins