first stage memory manager
Support code for upcoming memory manager