moves mixin to lib