add memory monitor fix #9