added pmemory.lua