fix monitor thread issue, even though commented out