add support for memory and memoryswap