add memory monitor