modules: convert modules to mixins