added a monitor for free memory