updated MemManager and loader