more mem alloc bug fixes to ::up