fix mmiddleware (copy methods from view)