fixes for malloc2