refactoring lib for require oneops