get current threshold todo current threshold threshold critic threshold 