moved stuff to MemoryLimitManager