model memory manager