merge to memoryManagers branch