add monitor thread