created memory manager & global manager