started to get monitor thread to work