memory functions are now in memory.dll