more hacks on zmalloc