add monitor memory script