move zmalloc to mm