memmgmt wip
memmgmt edited version