elimination of closures in MZKPortal module