add simple memory monitor