add memory watcher