pass the mixin in to the code generation methods