working on unifying the memorymanager
modified package